Add Python 3.12 support and modern package management#156
Open
csajedi wants to merge 7 commits intobytedance:masterfrom
Open
Add Python 3.12 support and modern package management#156csajedi wants to merge 7 commits intobytedance:masterfrom
csajedi wants to merge 7 commits intobytedance:masterfrom
Conversation
This commit adds support for Python 3.12 and provides an alternative installation method using UV, while maintaining full backward compatibility with existing pip-based workflows. Changes: - Add pyproject.toml with PEP 621 compliant project metadata - Fix numpy compatibility: constrain to <2.0 for Python 3.12 support - Relax torch/torchvision constraints to allow Python 3.12 compatible versions - Fix OpenCV version constraints to avoid known compatibility issues - Add UV as an optional, faster installation method in README - Update .gitignore for modern Python tooling All changes maintain backward compatibility with pip and requirements.txt. Tested with Python 3.12.9 on macOS with the Dolphin-1.5 model.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Fixes dependency confusion where ROCm index had stale versions of common packages like requests, blocking resolution. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The ROCm index has pytorch-triton-rocm but UV can't find it via explicit+sources for transitive deps. Non-explicit index with unsafe-best-match lets UV find ROCm packages while preferring PyPI for everything else. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit adds support for Python 3.12 and provides an alternative installation method using UV, while maintaining full backward compatibility with existing pip-based workflows.
Changes:
All changes maintain backward compatibility with pip and requirements.txt. Tested with Python 3.12.9 on macOS with the Dolphin-1.5 model.